/**
 * 
 */
package com.cdhospital.congfig;

import com.cdhospital.admincontroller.AdminDepartmentController;
import com.cdhospital.admincontroller.AdminExpertController;
import com.cdhospital.admincontroller.AdminGraduatemessageController;
import com.cdhospital.admincontroller.AdminIndexController;
import com.cdhospital.admincontroller.AdminLoginController;
import com.cdhospital.admincontroller.AdminNewsController;
import com.cdhospital.admincontroller.Uploadcontroller;
import com.jfinal.config.Routes;

/**
 * @author zhoushuo
 * 
 */
public class AdminRoutes extends Routes {

	/* (non-Javadoc)
	 * @see com.jfinal.config.Routes#config()
	 */
	@Override
	public void config() {
		// TODO Auto-generated method stub
		
		//设置默认的文件路径
		  setBaseViewPath("WEB-INF/view");
		  add("/admin", AdminIndexController.class);
		  add("/upload",Uploadcontroller.class);
		  add("/admin/login",AdminLoginController.class);
		add("/admin/graduatemessage",AdminGraduatemessageController.class);
		add("/admin/news",AdminNewsController.class);
		add("/admin/expert",AdminExpertController.class);
		add("/admin/department",AdminDepartmentController.class);
	}

}
